<include file="Public:header" />
<!--新房留言列表-->
<div class="pad_lr_10" >
    <form name="searchform"  method="get" >
        <table width="100%" cellspacing="0" class="search_form">
            <tbody>
            <tr>
                <td>
                    <div class="explain_col">
                        <input type="hidden" name="m" value="Admin" />
                        <input type="hidden" name="c" value="OrderHouse" />
                        <input type="hidden" name="a" value="index" />
                        <input type="hidden" name="menuid" value="{$menuid}" />
                        <input type="hidden" name="type" value="{$type}" />
                        {:L('publish_time')}：
                        <input type="text" name="time_start" id="time_start" onclick="myCalendar();" readonly class="date" size="12" value="{$search.time_start}">
                        -
                        <input type="text" name="time_end" id="time_end" onclick="myCalendar();" readonly class="date" size="12" value="{$search.time_end}">
                        &nbsp;&nbsp;类型：
                        <select name="type">
                            <option value="">-{:L('all')}-</option>
                            <volist name='order_type' id='vo'>
                            <option value="{$key}" <if condition="$search.type eq $key">selected="selected"</if>>{$vo}</option>
                            </volist>
                        </select>
                        &nbsp;&nbsp;{:L('status')}:
                        <select name="status">
                            <option value="">-{:L('all')}-</option>
                            <option value="1" <if condition="$search.status eq '1'">selected="selected"</if>>已联系</option>
                            <option value="0" <if condition="$search.status eq '0'">selected="selected"</if>>未联系</option>
                        </select>
                        &nbsp;&nbsp;{:L('keyword')} :
                        <input name="keyword" type="text" class="input-text" size="25" value="{$search.keyword}" />
                        <input type="submit" name="search" class="btn" value="{:L('search')}" />
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
    <div class="J_tablelist table_list" data-acturi="{:U('OrderHouse/ajax_edit')}">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th align="center" width="100">姓名</th>
                <th align="center" width="120">电话</th>
                <th width="110">类别</th>
                <th align="center">所属楼盘</th>
                <th width="120">留言时间</th>
                <th width="80">状态</th>
                <th width="100">{:L('operations_manage')}</th>
            </tr>
            </thead>
            <tbody>
            <volist name="list" id="val" >
                <tr>
                    <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                    <td align="center">{$val.id}</td>
                    <td align="center">{$val.name}</td>
                    <td align="center">{$val.phone}</td>
                    <td align="center">{$order_type[$val['type']]}</td>
                    <td align="left">{$val.houseTitle}</td>
                    <td align="center">{$val.add_time|date='Y-m-d H:i:s',###}</td>
                    <td align="center"><if condition="$val['status'] eq 1">已联系<else />未联系</if></td>
                    <td align="center">{:Z($options,$val['id'],$val['id'],$menuid)}</td>
                </tr>
            </volist>
            </tbody>
        </table>

        <div class="btn_wrap_fixed">
            <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
            <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('OrderHouse/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
            <div id="pages">{$page}</div>
        </div>
    </div>
</div>
<include file="Public:footer" />
<js file="__STATIC__/js/calendar/WdatePicker.js" charset="utf-8" />

</body>
</html>
